<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_order('pay_dan')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>待发货单独付款订单</h2>
				</div>
				<div class="sect" style="padding:0 10px;">
					<form method="get">
						<p style="margin:5px 0;">订单编号：<input type="text" name="id" value="${htmlspecialchars($id)}" class="h-input"/>&nbsp;
						团购编号：<input type="text" name="team_id" class="h-input number" value="{$team_id}" >
						
						</p>
						
						<p style="margin:5px 0;"><input type="submit" value="搜索" class="formbutton"  style="padding:1px 6px;"/></p>
					<form>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="40">ID</th><th width="340">团购</th><th width="180">用户</th><th width="100">是否拼团</th><th width="40" nowrap>数量</th><th width="100" nowrap>总款</th><th width="100" nowrap>支付</th><th width="120" nowrap>配送方式</th><th width="50" nowrap>操作</th></tr>
					<!--{loop $orders $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td>{$one['team_id']}&nbsp;(<a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teams[$one['team_id']]['title']}</a>)</td>
						<td><a href="/ajax/manage.php?action=userview&id={$one['user_id']}" class="ajaxlink">
						<!--{if $users[$one['user_id']]['username'] ==''}-->
						${time()}
						<!--{else}-->
						{$users[$one['user_id']]['username']}
						<!--{/if}-->
						</a>
						
						
						</td>
						<td>
							<!--{if $one['is_pin'] == 1}-->
							是.<br/>
							<!--{if $one['pin_info']['state'] == 1}-->
							<font color="red">已成团</font>
							<!--{elseif $one['pin_info']['state'] == 0}-->
							未成团，拼团中
							<!--{elseif $one['pin_info']['state'] == 2}-->
							已过期.
							<!--{/if}-->
							<!--{else}-->
							不是拼团
							<!--{/if}-->
						</td>
						<td>{$one['quantity']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['money'])}</td>
						<td>{$option_delivery[$teams[$one['team_id']]['delivery']]}${($one['express_id']&&$one['express_no'])?'<font style="color:red;">已发货</font>':''}<!--{if $one['express_id']}--><br /><a href="/manage/order/ajax.php?action=smsexpress&id={$one['id']}" class="ajaxlink"></a><!--{/if}--></td>
						<td class="op" nowrap>
						<a href="/ajax/manage.php?action=orderview&id={$one['id']}" class="ajaxlink">详情</a>
						<!--{if ($one['pin_info']['state'] == 1 || $one['is_pin'] == 0) && $one['rstate']=='normal'}-->
							<a href="/manage/order/print.php?id={$one['id']}" target="_blank">打印</a>
						<!--{/if}-->
						<!--{if $one['state']=='pay' && $one['rstate']=='askrefund'}-->
						<br/><font color="red">退款失败(请手动退款)</font>
						<!--{/if}-->
						
						</td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
